package data.nanjing.expo.models.domain.trade;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * 服务分类
 * @author ChanJi
 * @create 2018-02-26 9:25
 * trade_service_type
 **/
public class TradeServiceType {
    /**
     * 主键、自增
     * 类型id
     * service_id
     */
    private Integer serviceId;
    /**
     * 名称
     * service_name
     */
    private String serviceName;
    /**
     * 父id
     * parent_id
     */
    private Integer parentId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModify;

    private List<TradeServiceType> children;

    public TradeServiceType() {
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<TradeServiceType> getChildren() {
        return children;
    }

    public void setChildren(List<TradeServiceType> children) {
        this.children = children;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    @Override
    public String toString() {
        return "TradeServiceType{" +
                "serviceId=" + serviceId +
                ", serviceName='" + serviceName + '\'' +
                ", parentId=" + parentId +
                ", gmtCreate=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                ", children=" + children +
                '}';
    }
}
